import java.util.Comparator;
import java.util.PriorityQueue;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: lenovo
 * Date: 2022-09-21
 * Time: 8:03
 */
@FunctionalInterface
interface fun{
    void fun1();
//    void fun2();
//    void fun3();

}
public class TestLambda {
    public static void main(String[] args) {
        PriorityQueue<Integer> MaxQ = new PriorityQueue<>(new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
                return o2.compareTo(o1);
            }
        });
        PriorityQueue<String> MaxQ2 = new PriorityQueue<>((o2,o1)->o2.compareTo(o1));
    }
}
